package Zuo4Ye2;

public class SalariedEmployee extends ColaEmployee {
	private int monthSalary;

	public SalariedEmployee() {
		super();
	}

	public SalariedEmployee(String name, int month,int monthSalary) {
		super(name, month);
		this.monthSalary = monthSalary;
	}

	public int getMonthSalary() {
		return monthSalary;
	}

	public void setMonthSalary(int monthSalary) {
		this.monthSalary = monthSalary;
	}

	@Override
	public double getSalary(int month) {
		return this.monthSalary + super.getSalary(month);
	}
	
	
}

